#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QGraphicsPixmapItem>
#include<QGraphicsView>
#include<QGraphicsScene>
#include<QList>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    void BGMove();


    void PlaneMove();
    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);

private:
    Ui::Widget *ui;

    QGraphicsView mGameview;
    QGraphicsScene mScene;

    QGraphicsPixmapItem mPlane;
    QGraphicsPixmapItem mBackGround1;
    QGraphicsPixmapItem mBackGround2;

    QTimer *mBGMoveTimer;
    QTimer

    QList<int> mKeyList;
};

#endif // WIDGET_H
